<?php

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/6/6
 * Time: 9:54
 */
date_default_timezone_set('PRC');//中华人民共和国时区
use think\Config;
use com\gdl\newagk\dataobject\paper\PaperResultDTO;
use com\gdl\newagk\interfaces\PaperServiceClient;

\ApiClient::init(Config::get('api.appid'), Config::get('api.secret'), 30, array('gdlApiSdk','gdlCloudSdk'));
$api = new PaperServiceClient(NULL);
\ApiClient::build($api);
$Paper = new PaperResultDTO();
$Paper->type = time();
$result = $api->EndExamSession($Paper);
if ($result->code==0){
    return false;
}else{
    return true;
}


